package com.example.service.web;

import com.example.pojo.web.Bike;
import com.example.pojo.web.Result;

import java.util.List;
import java.util.Map;

/**
 * @ClassName BikeService
 * @Description: com.example.service
 * @Auther: xiwd
 * @Date: 2022/4/11 - 04 - 11 - 16:52
 * @version: 1.0
 */
public interface BikeService {
    //methods
    /**
     * 添加bike
     * @param bike
     * @return
     */
    public abstract Result insertBike(Bike bike);

    /**
     * 添加bike
     * @param bikes
     * @return
     */
    public abstract Result batchInsertBike(List<Bike> bikes);

    /**
     * 查询所有的单车信息
     * @return
     */
    public abstract Result selectBikeToHashMap(String bno,String belong);

    /**
     * 查询所有的单车信息
     * @return
     */
    public abstract Result selectBikeAsList(String bno, String belong);

    /**
     * 根据stop_id map表查询Bike对象
     * @param map
     * @return
     */
    public abstract List<Bike> selectBikeByStopMap(Map<String,Integer> map);

    /**
     * 根据id更新单车状态
     * @param id
     * @return
     */
    public abstract Integer updateBikeStatusByID(Integer id);

}
